<?
if (!defined('SMF'))
	die('Hacking attempt...');

$result = $smcFunc['db_query']('', '
	SELECT ship_id
	FROM {raw:db_ships}
	WHERE ship_destroyed = "N"
	AND xenobe = "N"',
	array(
		'db_ships' => $dbtables['ships']
	)
);

while ($row = $smcFunc['db_fetch_assoc']($result))
{
	gen_score($row['ship_id']);
}
$smcFunc['db_free_result']($result);

$message .= '<br>';
?>
